/**
 * @file display.h
 * @brief for 4inch LCD display
 * @author achdu0000@163.com
 * @version 1.0.0
 * @date 2024/07/04
 */

#ifndef _DISPLAY_H_
#define _DISPLAY_H_

#include <Arduino.h>
#include <ESP_Panel_Library.h>
#include <lvgl.h>
#include "lvgl_port_v8.h"

#define _LOG_SERIAL Serial

#if ESP_PANEL_LCD_WIDTH < ESP_PANEL_LCD_HEIGHT
#define ESP_PANEL_LCD_LEN ESP_PANEL_LCD_WIDTH
#else
#define ESP_PANEL_LCD_LEN ESP_PANEL_LCD_HEIGHT
#endif

void log_cb(const char *buf);

void onCreate();

void onCreate();

#endif //!_DISPLAY_H_
